package cn.mesmile.flink.jdkstream;

import cn.hutool.core.date.DateUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author zb
 * @date 2021/8/18 22:40
 * @Description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoOrder {

    private String tradeNo;
    private String title;
    private int money;
    private int userId;
    private Date createTime;

    public VideoOrder(String tradeNo,String title,int money){
        this.tradeNo = tradeNo;
        this.title = title;
        this.money = money;
    }

    @Override
    public String toString() {
        return "VideoOrder{" +
                "tradeNo='" + tradeNo + '\'' +
                ", title='" + title + '\'' +
                ", money=" + money +
                ", userId=" + userId +
                ", createTime=" + DateUtil.formatDateTime(createTime) +
                '}';
    }
}